<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        /**
         * 
         * 
         */
        // 1.isFinite 判断某个数是否是有限的数
        var res =  Number.isFinite(5);
        // var res =  Number.isFinite(Infinity);
        var num = 2 ** 1024;
        console.log(num);
        console.log(res);

        let num1 = 2**3;
        let num2 = Math.pow(2, 3);
        console.log(num1, num2);

        // 取整 parseInt() floor() ceil()
        let nume1 = 3.2;
        console.log(Math.ceil(nume1));
        Math.trunc()
        // Number
        // let num3 = '121';
        let num3 = 121.34;
        console.log(Number.isInteger(num3));//判断是否是整数 不会进行隐式转换
    </script>
</body>
</html>